<!DOCTYPE html>
<html xmlns:th="http://www.w3.org/1999/xhtml"
	xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout"
	layout:decorator="comm">
<head>
<title>查询客户模板</title>
<link href="vendor/datatables-plugins/dataTables.bootstrap.css" rel="stylesheet" />
<link href="vendor/fileinput/css/fileinput.css" rel="stylesheet" type="text/css" />
<link href="vendor/select2/css/select2.min.css" rel="stylesheet" type="text/css" />

<script th:src="@{dist/js/excelList.js?v=}+${session.version}"></script>
<script src="vendor/datatables/js/jquery.dataTables.min.js"></script>
<script src="vendor/fileinput/js/fileinput.js"></script>
<script src="vendor/fileinput/js/locales/zh.js"></script>
<script src="vendor/select2/js/select2.min.js"></script>
<script src="vendor/datatables-responsive/dataTables.responsive.js"></script>

<style type="text/css">
#dataTables-example tr td, th {
	max-width: 100px;
}

			html {
				/* -ms-overflow-style:none; */
				overflow:-moz-scrollbars-none;
				overflow-x: hidden;
			}
			textarea{ resize:none;}
			html::-webkit-scrollbar{width:0px} 
			.current{
	color:red !important;
	/* display:inline-block;
	border:1px solid red; */
}
</style>
</head>
<body>
	<div id="page-wrapper" th:fragment="content" th:remove="tag">
		<div class="row">
			<div class="col-lg-12">
				<h3 class="page-header">查询客户模板</h3>
			</div>
		</div>
		<!-- <div class="row" id="chooseAuditCompany" style="margin-bottom: 20px;">
			<div class="col-lg-12">
				<div class="panel-heading">
					<form class="form-inline" id="selectCompany">
						<div class="form-group">
							<select name="companyPkgNameSelect" id="companyPkgNameSelect"
								class="col-xs-4 form-control">
								<option th:each="project:${session.user.projects}"
									th:value="${project.prjId}"
									th:text="${project.entityBasic.entShrtnm}"></option>
							</select>
						</div>
						查询按钮
						<button type="button"
							class="btn btn-primary glyphicon glyphicon-search" id="searchBtn"></button>
						<button type="button" id="btn_add" class="btn btn-primary fa fa-plus" data-toggle="modal"
									data-target="#addBook" onclick="clearForm()"></button>

					</form>
				</div>
			</div>
		</div> -->

		<div class="row" id="requestList" style="display: none;">
			<div class="col-md-12 col-lg-12">
				<div class="panel panel-primary">
					<div class="panel-heading">
						<i class="fa fa-navicon"></i><label id="companyName">&nbsp;<span
							class="entityShortNm"></span>请求列表
						</label>
					</div>
					<div class="panel-body">
					      <div class="">
								<button type="button" id="btn_add" class="btn btn-primary fa fa-plus" data-toggle="modal"
									data-target="#addBook"  onclick="clearForm()"></button>
							</div>
							<br />
						<table data-toggle="table" class="table table-striped table-bordered table-hover" id="dataTables-example">
							<thead>
								<tr>
									<th>客户名称</th>
									<th>文件名称</th>
									<th>上传用户</th>
									<th>备注</th>
									<th>上传日期</th>
									<th>任务进度</th>
									<th>操作</th>
								</tr>
							</thead>
							<tbody>
							</tbody>
						</table>
					</div>
				</div>
			</div>
		</div>
		
	    	<!-- 新增demo -->
			<div class="modal fade" id="addBook" role="dialog">
				<div class="modal-dialog">
					<div class="modal-content">
						<div class="modal-header">
							<button type="button" class="close" data-dismiss="modal">&times;</button>
							<h4 class="modal-title">新增模板</h4>
						</div>
						<div id="addBookModal" class="modal-body">
						<form role="form" action="javascript:void(0)" id="addForm">
							<div class="form-horizontal">
								<div class="form-group">
							     	<input type="hidden"  name="fileLocation" id="fileLocation" />
							     	<input type="hidden"  name="clientId" id="clientId"/>
							     	<input type="hidden"  name="clientNm" id="clientNm"/>
									<label for="bookName" class="col-sm-2 control-label" style="float: left;"><span style="color:red">*</span>文件:</label>
									<div class="col-xs-offset-2" >
									<div class="col-xs-6">
											<input type="file" name="selectedTemplate" style="float:left"
												id="selectedTemplate" class="file" />
												</div><!-- <div class="col-xs-6">
											<button type="button" class="btn btn-primary"
												id="templateUploadBtn">上传</button></div> -->
									</div>
								</div>
								<div class="form-group">
									<label for="bookPrice" class="col-sm-2 control-label"><span style="color:red">*</span>文件名称:</label>
									<div class="col-sm-10">
										<input type="text" name="uploadName" id="uploadName" maxlength="30"
											class="form-control" />
									</div>
								</div>
								<div class="form-group">
									<label for="bookPublish" class="col-sm-2 control-label">备注:</label>
									<div class="col-sm-10">
										<textarea name="remark" id="remark" class="form-control" maxlength="100"></textarea>
									</div>
								</div>
							</div>
							</form>
						</div>
						<div class="modal-footer">
							<div class="center-block">
									<button type="button" class="btn btn-default" id="cancleBtn" data-dismiss="modal">取消</button> 
								<button id="addBooksInfo" type="button" class="btn btn-success"
									data-dismiss="modal">保存</button>
							</div>
						</div>
					</div>
				</div>
			</div>

			<!-- 修改demo -->
			<div class="modal fade" id="editBookInfo" role="dialog">
				<div class="modal-dialog">
					<div class="modal-content">
						<div class="modal-header">
							<button type="button" class="close" data-dismiss="modal">&times;</button>
							<h4 class="modal-title">修改</h4>
						</div>
						<div id="editBookModal" class="modal-body">
						 <form role="form" action="javascript:void(0)" id="updateForm">
		                    	<input type="hidden"  name="tplMgtId" id="tplMgtId" />
		                    	<input type="hidden"  name="editfileLocation" id="editfileLocation" />
							    <input type="hidden"  name="editclientId" id="editclientId"/>
							    <input type="hidden"  name="editclientNm" id="editclientNm"/>
							<div class="form-horizontal">
								<div class="form-group">
									<label for="editBookInfo"
										class="col-sm-2 control-label">文件:</label>
									<div class="col-xs-offset-2" >
									<div class="col-xs-6">
											 <input type="file" name="editSelectedTemplate" style="float:left"
												id="editSelectedTemplate" class="file" />
										</div>
										<!-- <div class="col-xs-6">
											<button type="button" class="btn btn-primary"
												id="editTemplateUploadBtn">上传</button>
										</div> -->
									</div>
								</div>
									<div class="form-group">
										<label for="editUploadName" class="col-sm-2 control-label"><span style="color:red">*</span>文件名称:</label>
										<div class="col-sm-10">
											<input type="text" name="editUploadName" id="editUploadName" maxlength="30"
												class="form-control" />
										</div>
									</div>
									<div class="form-group">
										<label for="editRemark" class="col-sm-2 control-label">备注:</label>
										<div class="col-sm-10">
											<textarea name="editRemark" id="editRemark" maxlength="100"
												class="form-control"></textarea>
										</div>
									</div>
							</div>
							<div class="modal-footer">
								<div class="center-block">
									<button id="cancelEdit" type="button" class="btn btn-default"
										data-dismiss="modal"  aria-label="Close">取消</button>
									<button id="saveEdit" type="button" class="btn btn-success"
										data-dismiss="modal">保存</button>
								</div>
							</div>
							</form>
						</div>
					</div>
				</div>
			</div>
	</div>

</body>

</html>